<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Controller for managing galleries.
 * @package cms-galleries/conrollers
 * @category Controller
 * 
 * @author Mark Angelo Angulo
 * @copyright (c) 2014
 */
class Gallery extends CMS_Controller {

    /**
     *  Constructor method.
     */
    function __construct()
    {
        parent::__construct();
    }

    /**
     * Default method called when nothing is specified.
     * Displays gallery.
     * @access public
     */
    public function index()
    {
        // active navigation
        $data['navigation'] = 'galleries';

        // build breadcrumb
        $this->breadcrumb->clear();
        $this->breadcrumb->add_crumb('Galleries');

        // build template
        $this->template
                ->title('Galleries')
                ->set_layout('main')
                ->set_partial('navigation', 'layouts/navigation')
                ->build('index', $data);
        
    }


}

/* End of file gallery.php */
/* Location: ./application/modules/cms-galleries/controllers/gallery.php */